<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    // var num = 365;
    var num = 365.789;
    // var num = NaN;
    // var num = {};
    // var num = [];
    // var num = [3,4,5,6,7,8];
    // var num = function(){};
    // var num = true;
    // var num = undefined;
    // var num = null;
    console.log(num);
    console.log(typeof num);
    var str = num.toString();
    console.log(str);
    console.log(typeof str);


    // var num = 365.739;
    // console.log(num);
    // console.log(typeof num);
    // var str = num.toFixed();
    // var str = num.toFixed(2);
    // var str = num.toFixed(6);
    // console.log(str);
    // console.log(typeof str);

    // console.log(365.899200000000)
    // console.log(000365)


    // console.log( String( "hello" ) )
    // console.log( String( 123 ) )
    // console.log( String( true ) )
    // console.log( String( undefined ) )
    // console.log( String( null ) )
    // console.log( String( NaN ) )
    // console.log( String( {} ) )
    // console.log( String( [3,4,5,6] ) )
    // console.log( String( function(){} ) )


</script>
</html>